package cn.springcloud.book;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wudl on 2018/12/1.
 */
@RestController
@Slf4j
public class ProviderController {
    @GetMapping("/sayHello")
    public String hello(String name) {
        log.info("server received.参数：{}",name);
        String result = "hello, " + name;
        log.info("server sent.结果：{}",result);
        return result;
    }
}
